package com.yoso.event;

import com.yoso.domain.User;
import org.springframework.context.ApplicationEvent;

/**
 * @author shizejin
 * @date 2022/6/21
 * @description:
 */
public class MyEvent extends ApplicationEvent {

    private final User user;

    public MyEvent(User source) {
        super(source);
        user = source;
    }

    public User getUser() {
        return user;
    }
}
